package jy.hibernate.beans;

import java.util.Date;
import java.util.Set;

/**
 * Inport_store entity
 * @author tingzi
 *
 */
public class Inport_store implements java.io.Serializable{
	private static final long serialVersionUID = -5315021626649556514L;
    //Fields
	private Integer input_store_id;//入库单id 自增长
	private String input_number;//商品入库单编号
	private Date input_date=new Date("1870-00-00");//商品入库时间
	private String transport_from="";//从哪运来
	private Client client;//来自于哪个公司
	private String transportation="";//货物运输方式
	private Employee employee;//经手人（员工）
	private Integer confirm=0;//确认与否（确认后此入库单就生效） 确认1，未确认0，默认为0
	private Set<Input_detail> input_details;
	public Set<Input_detail> getInput_details() {
		return input_details;
	}

	public void setInput_details(Set<Input_detail> input_details) {
		this.input_details = input_details;
	}

	//full constructor
	public Inport_store(String input_number, Date input_date,
			String transport_from, Client client, String transportation,
			Employee employee) {
		super();
		this.input_number = input_number;
		this.input_date = input_date;
		this.transport_from = transport_from;
		this.client = client;
		this.transportation = transportation;
		this.employee = employee;
	}
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "input_number："+input_number+"/tinput_date:"+input_date+"/ttransport_from:"
		      +"/ttransportation:"+transportation+"/tclient_name"+client.getUser_name()+
		      "/temployee_name"+employee.getName();
	}

	public Integer getInput_store_id() {
		return input_store_id;
	}
	public void setInput_store_id(Integer input_store_id) {
		this.input_store_id = input_store_id;
	}
	public String getInput_number() {
		return input_number;
	}
	public void setInput_number(String input_number) {
		this.input_number = input_number;
	}
	public Date getInput_date() {
		return input_date;
	}
	public void setInput_date(Date input_date) {
		this.input_date = input_date;
	}
	public String getTransport_from() {
		return transport_from;
	}
	public void setTransport_from(String transport_from) {
		this.transport_from = transport_from;
	}
	public Client getClient() {
		return client;
	}
	public void setClient(Client client) {
		this.client = client;
	}
	public String getTransportation() {
		return transportation;
	}
	public void setTransportation(String transportation) {
		this.transportation = transportation;
	}
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	public Integer getConfirm() {
		return confirm;
	}
	public void setConfirm(Integer confirm) {
		this.confirm = confirm;
	}


	
}
